const menuList = [
  {
    path: '/system',
    component: 'Layout',
    redirect: '/system/user',
    name: '/system',
    meta: {
      title: '系统管理',
      icon: 'system',
      hidden: false,
      roles: ['ADMIN', 'TEACHER']
    },
    children: [
      {
        path: 'user',
        component: 'system/user/index',
        name: 'User',
        meta: {
          title: '用户信息',
          icon: 'user',
          hidden: false,
          roles: ['ADMIN', 'TEACHER'],
          keepAlive: false
        }
      },

      {
        path: 'dept',
        component: 'system/dept/index',
        name: 'Dept',
        meta: {
          title: '班级管理',
          icon: 'tree',
          hidden: false,
          roles: ['ADMIN'],
          keepAlive: false
        }
      },

      {
        path: 'user-teacher',
        component: 'system/teacher/index',
        name: 'userTeacher',
        meta: {
          title: '教师管理',
          icon: 'tree',
          hidden: false,
          roles: ['ADMIN'],
          keepAlive: false
        }
      },
      {
        path: 'user-student',
        component: 'system/student/index',
        name: 'userStudent',
        meta: {
          title: '学生管理',
          icon: 'tree',
          hidden: false,
          roles: ['ADMIN'],
          keepAlive: false
        }
      }
    ]
  },
  {
    path: '/leave',
    component: 'Layout',
    redirect: '/leave/student',
    name: '/leave',
    meta: {
      title: '请假管理',
      icon: 'system',
      hidden: false,
      roles: ['ADMIN', 'TEACHER', 'STUDENT']
    },
    children: [
      {
        path: 'student',
        component: 'system/leave/studentLeave/index',
        name: 'student',
        meta: {
          title: '学生请假',
          icon: 'user',
          hidden: false,
          roles: ['ADMIN', 'TEACHER', 'STUDENT'],
          keepAlive: false
        }
      },
      {
        path: 'teacher',
        component: 'system/leave/teacherLeave/index',
        name: 'teacher',
        meta: {
          title: '教师请假',
          icon: 'role',
          hidden: false,
          roles: ['ADMIN', 'TEACHER'],
          keepAlive: false
        }
      }
    ]
  },
  {
    path: '/notice',
    component: 'Layout',
    name: '/notice',
    meta: {
      title: '公告管理',
      icon: 'system',
      hidden: false,
      roles: ['ADMIN']
    },
    children: [
      {
        path: '/bulletin',
        component: 'bulletin/index',
        name: 'bulletin',
        meta: {
          title: '公告管理',
          icon: 'user',
          hidden: false,
          roles: ['ADMIN'],
          affix: true,
          keepAlive: false,
          alwaysShow: false
        }
      }
    ]
  },
  {
    path: '/me',
    component: 'Layout',
    name: '/me',
    meta: {
      title: '公告管理',
      icon: 'system',
      hidden: false,
      roles: ['ADMIN', 'TEACHER', 'STUDENT']
    },
    children: [
      {
        path: '/meInfo',
        component: 'meInfo/index',
        name: 'meInfo',
        meta: {
          title: '个人资料',
          icon: 'user',
          hidden: false,
          roles: ['ADMIN', 'TEACHER', 'STUDENT'],
          affix: true,
          keepAlive: false,
          alwaysShow: false
        }
      }
    ]
  }
]

module.exports = { menuList }
